package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/12
 * Time: 10:49
 * Description:
 */
@Data
@TableName("t_user_account_change")
@ApiModel(value = "TUserAccountChangeEntity", description = "数据库-用户账户变更记录表")
public class TUserAccountChangeEntity extends AbstractPageEntity {
    @TableId("change_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String changeId;

    @TableField("user_id")
    @ApiModelProperty(value = "用户主键", dataType = "String", notes = "用户主键")
    private String userId;

    @TableField("account_trend")
    @ApiModelProperty(value = "资金走向类型码值", dataType = "String", notes = "资金走向类型码值")
    private String accountTrend;

    @TableField("business_id")
    @ApiModelProperty(value = "业务id", dataType = "String", notes = "业务id")
    private String businessId;

    @TableField("account_change_business_type")
    @ApiModelProperty(value = "业务表指向码值", dataType = "String", notes = "业务表指向码值")
    private String accountChangeBusinessType;

    @TableField("cash_amount")
    @ApiModelProperty(value = "现金：交易金额", dataType = "BigDecimal", notes = "现金：交易金额")
    private BigDecimal cashAmount;

    @TableField("before_cash_amount")
    @ApiModelProperty(value = "现金：变动前资金", dataType = "BigDecimal", notes = "现金：变动前资金")
    private BigDecimal beforeCashAmount;

    @TableField("after_cash_amount")
    @ApiModelProperty(value = "现金：变动后资金", dataType = "BigDecimal", notes = "现金：变动后资金")
    private BigDecimal afterCashAmount;

    @TableField("gold_coin_amount")
    @ApiModelProperty(value = "金币：交易金额", dataType = "BigDecimal", notes = "金币：交易金额")
    private BigDecimal goldCoinAmount;

    @TableField("before_gold_coin_amount")
    @ApiModelProperty(value = "金币：变动前资金", dataType = "BigDecimal", notes = "金币：变动前资金")
    private BigDecimal beforeGoldCoinAmount;

    @TableField("after_gold_coin_amount")
    @ApiModelProperty(value = "金币：变动后资金", dataType = "BigDecimal", notes = "金币：变动后资金")
    private BigDecimal afterGoldCoinAmount;

    @TableField("raffle_ticket")
    @ApiModelProperty(value = "抽奖券：交易金额", dataType = "Integer", notes = "抽奖券：交易金额")
    private Integer raffleTicket;

    @TableField("before_raffle_ticket")
    @ApiModelProperty(value = "抽奖券：变动前资金", dataType = "Integer", notes = "抽奖券：变动前资金")
    private Integer beforeRaffleTicket;

    @TableField("after_raffle_ticket")
    @ApiModelProperty(value = "抽奖券：变动后资金", dataType = "Integer", notes = "抽奖券：变动后资金")
    private Integer afterRaffleTicket;

    @TableField("brokerage_amount")
    @ApiModelProperty(value = "佣金：交易金额", dataType = "BigDecimal", notes = "佣金：交易金额")
    private BigDecimal brokerageAmount;

    @TableField("before_brokerage_amount")
    @ApiModelProperty(value = "佣金：变动前资金", dataType = "BigDecimal", notes = "佣金：变动前资金")
    private BigDecimal beforeBrokerageAmount;

    @TableField("after_brokerage_amount")
    @ApiModelProperty(value = "佣金：变动后资金", dataType = "BigDecimal", notes = "佣金：变动后资金")
    private BigDecimal afterBrokerageAmount;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;
}
